<template>
  <div id="app">
    <div id="nav">
      <ul class="u1">
        <p></p>
        <router-link to="/login" exact-active-class="active" tag="li"
          >登录</router-link
        >|
        <router-link to="/zc" exact-active-class="active" tag="li"
          >注册</router-link
        >
        <router-link to="/shop" exact-active-class="active" tag="li"
          >我的订单</router-link
        >
        <router-link to="/about" exact-active-class="active" tag="li"
          >我的收藏</router-link
        >
        <router-link to="/goshop" exact-active-class="actives" tag="li"
          >购物车</router-link
        >
      </ul>
    </div>

    <div class="top">
      <p><img src="./assets/1.png" alt="" /></p>
      <ul class="u2">
        <router-link to="/first" exact-active-class="activess"  tag="li">首页</router-link>
        <router-link to="/two" exact-active-class="activess" tag="li">全部</router-link>
        <router-link to="/three" exact-active-class="activess" tag="li"
          >关于我们</router-link
        >
      </ul>

      <p><input type="text" /></p>
    </div>

    <router-view class="route" />
  </div>
</template>

<style lang="scss">
* {
  margin: 0;
  padding: 0;
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

#nav {
  margin-bottom: 10px;
  .u1 {
    width: 100%;
    height: 50px;
    line-height: 50px;
    display: flex;
    background: #000;
    color: rgb(209, 207, 207);
    p {
      width: 80%;
    }
    li {
      width: auto;
      // margin: 0 10px;
      padding: 0 10px;
      text-align: center;
      font-size: 12px;
    }
  }
}
.top {
  width: 80%;
  display: flex;
  margin: auto;
  justify-content: space-between;
  border-bottom: 1px solid rgb(148, 148, 148);
  height: 50px;
  p {
    img {
      width: auto;
      height: 50px;
    }
    input {
      width: auto;
      height: 40px;
      border: 1px solid rgb(214, 213, 213);
    }
  }
  .u2 {
    width: 60%;
    color: black;
    display: flex;
    li{
      text-align: center;
      line-height: 50px;
      width: 15%;
    }
  }
}
.active {
  color: white;
}
.actives {
  background: #fff;
  color: red;
}
.route {
  width: 80%;
  margin: auto;
}
.activess{
  color: skyblue;
  border-bottom: 2px solid skyblue;
}
</style>
